<?php
namespace model;
require_once ('src/Model/dbModel.php');

 class ApplicationModel {

    //Strängoberoende i URL-en
    public $m_addBlogPostURL = "addBlogPost";
    public $m_registerBlogPostURL = "registerPost";
    public $m_editBlogPostURL =  "editBlogPost";
    public $m_deleteBlogPostURL =  "deleteBlogPost";
    public $m_showBlogCommentsURL =  "showBlogComments";
    public $m_addCommentURL =  "addComment";
    public $m_editCommentURL =  "editComment";
    public $m_deleteCommentURL =  "deleteComment";
    public $m_loginURL =  "login";
    public $m_logoutURL =  "logout";
    public $m_registerURL =  "register";
    public $m_setAdminURL =  "setAdmin";
    public $m_editUsersURL = "editUsers";
    public $m_removeUserURL =  "removeUser";

    //Strängoberoende i POST-arrayer/HTML-Formulär
    public $m_postBlogHeader = "blogHeader";
    public $m_postBlogText = "blogText";
    public $m_postUpdatedBlogHeader = "updatedBlogHeader";
    public $m_postUpdatedBlogText = "updatedBlogText";
    public $m_postCommentText = "commentText";
    public $m_postUpdatedCommentText = "updatedCommentText";
    public $m_postNewUsername = "NewUsername";
    public $m_postNewPassword = "NewPassword";
    public $m_postNewRetypedPassword = "NewRetypedPassword";
    public $m_formUsername = "username";
    public $m_formPassword = "password";
    public $m_formStayLogedIn = "stayLogedIn";
    public $m_formSubmit = "submit";

    //Strängoberoende i SESSION-arrayer
    public $m_sessionRegisteredBlogPostOK = "registeredBlogPostOk";
    public $m_sessionUpdatedBlogPostOK = "updatedBlogPostOk";
    public $m_sessionRegisteredCommentOK = "registeredCommentOk";
    public $m_sessionUpdatedCommentOK = "updatedCommentOk";
    public $m_sessionRegisteredUserOk = "registeredUserOk";
    public $m_sessionRegisteredNewUser = "registeredUserOk";

    //Övrigt
    public $m_newType = "new";
    public $m_updateType = "update";

    //Övriga Blog/kommentar-parametrar
    public $m_minNumberBlogHeader = 3 ;
    public $m_minNumberBlogText = 6 ;
    public $m_maxNumberBlogText = 500 ;
    public $m_minNumberCommentText = 6 ;
    public $m_maxNumberCommentText = 200 ;

    //vid ny användare
    public $m_minNumberUsername = 3;
    public $m_minNumberPassword = 6;

    public $dbModel;


    /**
    * __constructor
    */
    public function __construct()     {
        $this->dbModel = new \model\dbModel();
    }


}

